package tianrun.ziguan.api.calculate.config.service.asset.group;

import tianrun.ziguan.api.calculate.config.dto.request.AssetGroupTreeSaveBody;
import tianrun.ziguan.api.calculate.config.dto.response.AssetGroupTree;
import tianrun.ziguan.api.calculate.config.entity.TAssetGroup;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;
import java.util.List;

/**
 * @author zhaoqi
 */
public interface ITAssetGroupService extends IService<TAssetGroup> {

    AssetGroupTree listByTree(Long groupId);
    List<TAssetGroup> getByIds(Collection<Long> groupIds);
    TAssetGroup getByName(String name);

    AssetGroupTree saveByTree(AssetGroupTreeSaveBody body);
}
